Skip to content

Cypress#10

Open
ChrissyDev wants to merge 8 commits intosttaran:masterfrom
ChrissyDev:cypress
Open

Cypress#10
ChrissyDev wants to merge 8 commits intosttaran:masterfrom
ChrissyDev:cypress

Conversation

@ChrissyDev
Copy link

Please read and mark the following check list before creating a pull request (check one with "x"):

Short description of what this resolves:

@@ -0,0 +1,11 @@
import AuthTab from "../../page-Objects/AuthTab.js";

const authTab = new AuthTab();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

authPage, why did you call it tab?

@@ -0,0 +1,12 @@
import { faker } from '@faker-js/faker';

class AuthTab {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AuthPage or LoginPage

import { faker } from '@faker-js/faker';

class AuthTab {
login() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass values into a method, do not generate it here

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

import { faker } from '@faker-js/faker';

class SmartTablePage {
createUser() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass user into a method

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

@@ -0,0 +1,11 @@
import AuthPage from "../../page-Objects/AuthTab.js";

const authPage = new AuthPage();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move it to describe

Comment on lines 14 to 19
cy.get("tbody")
.should("be.visible")
.within(() => {
cy.get(".ng2-smart-row").should("have.length", 1);
smartTablePage.verifyCreatedUserData(newUser);
});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this logic to POM

import { faker } from '@faker-js/faker';

class AuthTab {
login() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

import { faker } from '@faker-js/faker';

class SmartTablePage {
createUser() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not resolved

Copy link
Owner

@sttaran sttaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not all comments are resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants